package com.bambooshoot.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.bambooshoot.common.annotation.ExcelDictFormat;
import com.bambooshoot.common.convert.ExcelDictConvert;
import com.bambooshoot.domain.BizTravelDetails;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 旅游明细视图对象 biz_travel_details
 *
 * @author mxc
 * @date 2024-07-10
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BizTravelDetails.class)
public class BizTravelDetailsVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 旅游表ID
     */
    private Long travelId;

    /**
     * 旅游名称
     */
    @ExcelProperty(value = "旅游名称")
    private String travelName;

    /**
     * 时间
     */
    @ExcelProperty(value = "时间")
    @DateTimeFormat(value = "yyyy-MM-dd")
    private Date travelDate;

    /**
     * 项目类型
     */
    @ExcelProperty(value = "项目类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "item_type")
    private Integer itemType;

    /**
     * 项目明细
     */
    @ExcelProperty(value = "项目明细")
    private String itemInfo;

    /**
     * 花费金额(元)
     */
    @ExcelProperty(value = "花费金额(元)")
    private BigDecimal amount;


}
